package com.lin.java.tool.common.context;

import com.lin.java.tool.common.model.dto.DeptDTO;
import com.lin.java.tool.common.model.dto.RoleDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author linjiang
 * @date 2024/7/26
 * @fn
 */
@Data
public class UserInfoContext {
    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("账户")
    private String username;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("所属部门")
    private DeptDTO dept;

    @ApiModelProperty("用户角色权限")
    private List<RoleDTO> roles;

    @ApiModelProperty("权限字符")
    private List<String> permissions;
}
